package com.dao;

import com.model.Customer;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    Customer selectCustomerInfoByWXOpenId(@Param("wxOpenId") String openId);

    Customer selectCustomerInfoByALiOpenId(@Param("aliOpenId")String openId);


    List<Customer> selectAll(Customer customer);
}